APDE USB / OTG communication 您所在的位置:网站首页 java n-ide-android builder-java se compiler下载 APDE USB / OTG communication

APDE USB / OTG communication

2023-04-21 15:43| 来源: 网络整理| 查看: 265

Last update 2021-05-20T00:00:00Z this post will be constantly updated, so someone will be interested, but do not want to scroll through the posts further, they will see and know everything, show what has already been done and where we are now stuck

Conditions and purpose: to write a working program on a smartphone using APDE of any version, without touching a personal computer. Connect any smartphone or tablet via OTG cable via serial port to any microcontroller via their RX TX pins. Please do not offer to communicate via bluetooth or otherwise, and do not offer to find a computer anywhere yet. The point is to solve the problem without touching the PC via the UART.

what has been achieved:

jump to the post in the thread where the last big success happened.

APDE USB / OTG communication - #11 by jafal

5 libraries for APDE found, 2 of them are installed. Solved the issue of downloading from github if you are on a phone or tablet. Complete instructions for manually installing libraries in APDE.

library

Installing Contributed Libraries · Calsign/APDE Wiki · GitHub manual_mode_install_library_through_dfx_for_APDE https://youtu.be/Ua8rquFrukQ . GitHub - inventit/processing-android-serial: Android Serial Library for Processing . Release 0.2.0 · inventit/processing-android-serial · GitHub . GitHub - mik3y/usb-serial-for-android: Android USB host serial driver library for CDC, FTDI, Arduino and other devices. . Arduino ADK support as a library for the latest version of Processing (Android mode) · Issue #7197 · arduino/Arduino · GitHub . GitHub - geetarista/processing-arduino: Arduino library for Processing . the green code is never displayed in the mobile version of the browser, it is imperative to switch the display to the version for the personal computer, and this is on all browsers for smartphones and tablets.

https://youtu.be/1goRSG9b0wc

. current problem: Android phone system requires two extra lines in the generated output apk file in the manifest and having one xml file inside the apk. the problem is to put them there when generating the APDE of the output apk. Without them, there is no access to usb.

detals problem

cd0978e3312c42cac42dd8ca527e17624766face cd0978e3312c42cac42dd8ca527e17624766face1040×390 51.4 KB . {processing project root}\res\xml Filename: device_filter.xml

.

.

.JTUS - Journey To Unknown Soundscapes: How to Arduino with Android really good! Arduino Android Serial Communication | by hingxyu | Medium . Impossible to grant access to USB port through AndroidManifest · Issue #84 · Calsign/APDE · GitHub .

No serial library Processing for smartphone. Help

If the app should be notified when a device is attached, add device_filter.xml to your project’s res/xml/ directory and configure in your AndroidManifest.xml .

.

permision

f8a17f539c0f71e9437b305ac3f18d8f6bb58393_2_460x1000 f8a17f539c0f71e9437b305ac3f18d8f6bb58393_2_460x1000460×1000 92.5 KB

. if you make changes to the native manifest file in APDE 5.2, then whenever I run APDE5.2, it overwrites all my changes and restores the original file state.

it turned out to place all the files in an external folder

https://youtu.be/T85_DxDLT9U

hardware: two smartphones, one has a full system root. testing on standard arduono uno

List

.

Software: APDE any version, (latest 5.2)

APDE all

GitHub - Calsign/APDE: Source code for APDE: Create and run Processing sketches on an Android device.

. . I also noticed that when using the word android here, there is confusion, it has three meanings, this is confusing.

ANDROD system phone. Processing for ANDROID (PC). APDE processing for ANDROID.

when communicating, clarify which of these three options do you mean . this new branch is a continuation of a large other branch.

No serial library processing for smartphone. Help

No serial library Processing for smartphone. Help

.

here I will try to collect all the useful materials on this topic

https://forum.processing.org/two/discussion/17375/android-processing-app-crashes-when-using-usb-processing-serial-library-serial-list-this-probs

JTUS - Journey To Unknown Soundscapes: How to Arduino with Android really good!

jSerialComm

processing-android usb serial error · Issue #11 · inventit/processing-android-serial · GitHub

https://www.allaboutcircuits.com/projects/communicate-with-your-arduino-through-android/

Issue with app crashing when reading serial-related code. Help! · Issue #16 · inventit/processing-android-serial · GitHub

Processing на планшете | Аппаратная платформа Arduino

No serial library Processing for smartphone. Help - #37 by jafal

Using Serial with Processing for Android - #8 by noel

Anyone possible make project

From java to android - #8 by svan

.

to facilitate work.

for those who want to help. you will be working on a phone or tablet, I recommend installing Hacker’s Keyboard or its analogues. It has ready-made templates that you can fill in frequently used code fragments, as well as remember everything that got into the clipboard - you need to hold down Enter. end of line, start of line, shift + , ctrl + c, ctrl + v, ctrl + x.

IMG_20210516_222014 IMG_20210516_2220141920×1440 535 KB

This is for a tablet, but the phone does not fit a lot of useful keys on the screen, then it is probably better to use the Gboard keyboard, it has a separate mode with arrows and still has memory for the clipboard. It may require development of xml files or some other, for this it is best to use an external text editor for programming. Acode.

This post is not yet complete, if possible I will supplement it with information.



【本文地址】

公司简介

联系我们

今日新闻

    推荐新闻

    专题文章
      CopyRight 2018-2019 实验室设备网 版权所有